﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GooglePlaces.Queries;

namespace GooglePlaces
{
    public class PlaceAutocompleteApi : BaseApi
    {
        //params: location, radius
        public string PlaceAutocomplete(PlaceAutocompleteQuery query)
        {
            this.BaseApiURL = "https://maps.googleapis.com/maps/api/place/autocomplete/";

            this.Parameters = ComputeParameters(query);
            string result = MakeHttpRequestAndGetResponse(this.APIURL);
            return result;
        }
    }
}
